package site.lyweb.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import site.lyweb.domain.dto.TeaCourseRelation;
import site.lyweb.domain.dto.Teacher;
import site.lyweb.domain.dto.TeacherCourse;
import site.lyweb.domain.query.TeacherCourseQuery;
import site.lyweb.domain.query.TeacherQuery;

import java.util.List;

/**
* @author 深山老林
* @description 针对表【teacher】的数据库操作Mapper
* @createDate 2024-06-19 20:53:32
* @Entity generator.domain.Teacher
*/
public interface TeacherCourseMapper {

    int selectByCount(TeacherCourseQuery teacherCourseQuery);

    List<TeacherCourse> selectByPage(TeacherCourseQuery teacherCourseQuery);

    boolean removeBatchByIds(List<String> idList);

    boolean removeById(String id);

    boolean insert(@Param("id") String id,@Param("teacherId") String teacherId,@Param("courseId") String courseId);

    boolean update(@Param("id") String id,@Param("teacherId") String teacherId,@Param("courseId") String courseId);

    TeaCourseRelation getById(String id);
}




